package com.hy.system.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.system.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author hy
 * @since 2021-04-06
 */
public interface UserService extends IService<User> {

    IPage<User> findUserPage(Page<User> page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);

    /**
     * 添加用户
     * @param user 用户对象
     */
    void addUser(User user);

    /**
     * poi导出Excel
     */
    void downLoadXlsxByPoi(HttpServletResponse response) throws Exception;
}
